package com.cdpm.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cdpm.system.domain.ActivityConfig;
import com.cdpm.system.mapper.ActivityMapper;
import com.cdpm.system.service.IActivityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description:
 * @author: longjy
 * @create: 2024-08-27 16:26
 **/
@Service
public class ActivityServiceImpl extends ServiceImpl<ActivityMapper, ActivityConfig> implements IActivityService {

    @Resource
    ActivityMapper activityMapper;

    @Override
    public List<ActivityConfig> findList(ActivityConfig activityConfig) {
        List<ActivityConfig> list = activityMapper.findList(activityConfig);
        return list;
    }

    @Override
    public int insert(ActivityConfig activityConfig) {
        return activityMapper.insert(activityConfig);
    }

    @Override
    public int update(ActivityConfig activityConfig) {
        return activityMapper.update(activityConfig);
    }

    @Override
    public ActivityConfig findById(Long activityId) {
        ActivityConfig activityConfig = activityMapper.findById(activityId);
        return activityConfig;
    }




}
